Functions


Functions Summary
void

cotpl_callback_replace(string arg, int i, string val)

Replaces $this in callback arguments with the template tag value.

string

cotpl_index_glue(array path)

Glues full block name (block path for parse) from index path

string

cotpl_read_file(string path)

A faster implementation of file_get_contents().

array

cotpl_tokenize(string str, string delim)

Splits a string into tokens by delimiter characters with double and single quotes support.

Function Detail

system\cotemplate.php at line 1764

cotpl_callback_replace

public void cotpl_callback_replace(string arg, int i, string val)
Replaces $this in callback arguments with the template tag value. To be used with array_walk.
Parameters:
arg - Callback function argument value
i - Callback function argument key
val - Tag value

system\cotemplate.php at line 1799

cotpl_index_glue

public string cotpl_index_glue(array path)
Glues full block name (block path for parse) from index path
Parameters:
path - CoTemplate index path
Returns:

system\cotemplate.php at line 1784

cotpl_read_file

public string cotpl_read_file(string path)
A faster implementation of file_get_contents(). Reads a file into a string.
Parameters:
path - File path
Returns:

system\cotemplate.php at line 1820

cotpl_tokenize

public array cotpl_tokenize(string str, string delim)
Splits a string into tokens by delimiter characters with double and single quotes support. Unicode-aware.
Parameters:
str - Source string
delim - Delimiter characters
Returns: